/*
 * Copyright 2000-2020 ALPHA LAB.Inc All Rights Reserved.
 */
package com.alphalab.framework.test.queryTest; 

import org.springframework.beans.BeanUtils;
import com.alphalab.framework.domain.AbstractValueObjectTransfer;

/**
 * ProjectItemTransfer.
 * @author allen 
 * @version 1.0.0 2017年12月25日
 */
public class ProjectItemTransfer extends AbstractValueObjectTransfer<ProjectItemVo, ProjectItem> {

	/* (non-Javadoc)
	 * @see com.alphalab.framework.domain.IValueObjectTransfer#toVO(com.alphalab.framework.domain.BaseEntity)
	 */
	public ProjectItemVo toVO(ProjectItem paramPO) {
		if (paramPO == null) {
			return null;
		}
		ProjectItemVo projectItemVo = new ProjectItemVo();
		BeanUtils.copyProperties(paramPO, projectItemVo);
		return projectItemVo;
	}
	
	/* (non-Javadoc)
	 * @see com.alphalab.framework.domain.IValueObjectTransfer#toPO(com.alphalab.framework.domain.AbstractValueObject)
	 */
	public ProjectItem toPO(ProjectItemVo paramVO) {
		if (paramVO == null) {
			return null;
		}
		ProjectItem projectItem = new ProjectItem();
		BeanUtils.copyProperties(paramVO, projectItem);
		return projectItem;
	}	

}
